import Vue from 'vue'
import Router from 'vue-router'
import Header from 'components/Header'
import Person from 'components/Person'
import Carsearch from 'components/Carsearch'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'Header',
      component: Header,
      meta: {
        title: '区域监管'
      }
    },
    {
      path: '/person',
      name: 'Person',
      component: Person,
      meta: {
        title: '人员追踪'
      }
    },
    {
      path: '/carsearch',
      name: 'Carsearch',
      component: Carsearch,
      meta: {
        title: '车辆追踪'
      }
    },
    { path: "*", redirect: '/' }
  ]
})
